package com.yuanfeng.activity.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.activity.entity.ActivityUserShareGetRedpacketPersonEntity;
import com.yuanfeng.activity.mapper.ActivityUserShareGetRedpacketPersonMapper;
import com.yuanfeng.activity.service.ActivityUserShareGetRedpacketPersonService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.util.querypage.PageUtils;
import com.yuanfeng.commoms.util.querypage.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 *
 */
@Service
public class ActivityUserShareGetRedpacketPersonServiceImpl extends ServiceImpl<ActivityUserShareGetRedpacketPersonMapper, ActivityUserShareGetRedpacketPersonEntity>
    implements ActivityUserShareGetRedpacketPersonService{

    @Override
    public ResponseResult queryUserInvitePersonList(Map<String, Object> param) {
        IPage<ActivityUserShareGetRedpacketPersonEntity> page=this.baseMapper.selectUserInvitePersonList(new Query<ActivityUserShareGetRedpacketPersonEntity>().getPage(param),
                param);

        return ResponseResult.success(PageUtils.getPage(page));
    }
}




